<?php

	class Team implements iModel {
		
		public $teamId;
		public $name;
		public $managerId;
		
		public function __construct() {
			
		}
		
		public function getTeamId() {
			 return $this->teamId; 
		} 
		
		public function getName() {
			 return $this->name; 
		} 
		
		public function getManagerId() {
			 return $this->managerId; 
		}
		 
		public function setTeamId($teamId) {
			 $this->teamId = $teamId; 
		}
		 
		public function setName($name) {
			 $this->name = $name; 
		}
		 
		public function setManagerId($managerId) {
			 $this->managerId = $managerId; 
		}
				
		public function JSONToObject($teamJSON) {
			
			$this->setTeamId($teamJSON->teamId);
			$this->setName($teamJSON->$name);
			$this->setManagerId($teamJSON->managerId);

		}
		
	}

?>